package com.eco.fanliapp.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eco.fanliapp.entity.SyChannel;
import com.eco.fanliapp.vo.SyChannelGroupVo;
import com.eco.fanliapp.vo.SyChannelUserVO;
import com.eco.fanliapp.vo.SyChannelVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 渠道表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2019-08-21
 */
public interface SyChannelMapper extends BaseMapper<SyChannel> {

	SyChannel findSyChannelByUserId(@Param("userId") Long userId);

	List<SyChannelVo> syChannelList(@Param("companyId")Integer companyId);

	List<Integer> findChannelListByGroupId(@Param("groupId")Integer groupId);

	SyChannelGroupVo groupList(@Param("channelList")List<Integer> channelList, @Param("type")Integer type, @Param("startTime")Long startTime,  @Param("endTime")Long endTime);

	List<SyChannelGroupVo> channelDetailList(@Param("groupId")Integer groupId, @Param("startTime")Long startTime,@Param("endTime") Long endTime,@Param("channelName")String channelName);
}
